]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
extensionDownloader: Stop handling 'blacklist' operation
authorFlorian Müllner <fmuellner@gnome.org>
Wed, 25 Mar 2020 23:39:29 +0000 (00:39 +0100)
committerFlorian Müllner <florian.muellner@gmail.com>
Fri, 27 Mar 2020 12:41:57 +0000 (12:41 +0000)
Blacklist support was added all the way back in commit 1e286e43, but
the code had been defunctional until recently. While uninstalling an
extension that has been blacklisted makes sense off-hand, unfortunately
we don't know if an extension was *actually* blacklisted:

The website returns that operation for any extensions for which it
doesn't find any versions that match the shell version. That is, the
most likely reason is that the user updated to a new GNOME release
which the extension doesn't support yet.

It doesn't look like the website is going to change that behavior any
time soon[0], so drop the 'blacklist' handling for the time being.

[0] https://gitlab.gnome.org/Infrastructure/extensions-web/-/issues/95

https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1132

js/ui/extensionDownloader.js

index b399394b1be85ea26cda1db4ce7348583eba2173..306aaf14fb3b9299fae09eee757018a9eeb78805 100644 (file)
@@ -156,9 +156,7 @@ function checkForUpdates() {
         let operations = JSON.parse(message.response_body.data);
         for (let uuid in operations) {
             let operation = operations[uuid];
-            if (operation == 'blacklist')
-                uninstallExtension(uuid);
-            else if (operation == 'upgrade' || operation == 'downgrade')
+            if (operation === 'upgrade' || operation === 'downgrade')
                 downloadExtensionUpdate(uuid);
         }
     });